﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WfProveedorBnd.aspx.cs" Inherits="CO.WfProveedorBnd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="../Styles/General.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/token-input-facebook.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/jquery-ui.custom.css" rel="stylesheet" type="text/css" />

    <script src="../Scripts/jquery.min.js" type="text/javascript"></script>
   
    <script src="../Scripts/jquery.tokeninput.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.purr.js" type="text/javascript"></script>
    <script src="../Scripts/General.js" type="text/javascript"></script>

    <style type="text/css">

.esdGridHeaderStyle
{
    background: #eaeaea url('../Styles/../Images/Controls/sprite.gif') repeat-x 0 -2300px;
    height: 30px;
    color: #36428b;
    border: solid 1px #C9C9C9;
}
.esdGridHeaderStyle th
{
    border: solid 1px #C9C9C9;
}

.esdGridRowStyle
{
    background: #fff;
}
.esdGridAlternativeRowStyle
{
    background: #f2f2f2;
}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>

         <div class="ToolBar">
        <asp:Menu ID="mnuToolbar" runat="server" CssClass="ToolBarControl" 
             Orientation="Horizontal" onmenuitemclick="mnuToolbar_MenuItemClick" >
            <Items>
                <asp:MenuItem Text="Nuevo" Value="_BTTNEW" ImageUrl="../Images/Icons/Enabled/ArrowDoc.png">
                </asp:MenuItem>
                <asp:MenuItem Text="Salir" Value="_BTTEXIT" ImageUrl="../Images/Icons/Enabled/BACK.png">
                </asp:MenuItem>
            </Items>
        </asp:Menu>
    </div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
   
        <table width="100%">
            <div class="DataHeader">
             </div>    
            <tr>
                <td align="center">
                    &nbsp;</td>
            </tr>
                    
        </table>
    
    </div>
    <div align="center">
    <table id="TableDataHeader" cellpadding="0" cellspacing="0">

        <tr>
            <td colspan="9">
                &nbsp;
            </td>
        </tr>
        <tr>
                <td>

                </td>
                <td>

                    Codigo</td>
                  <td>
                      <asp:TextBox ID="txtCodigo" runat="server"></asp:TextBox>
                </td>
                  <td>

                </td>
                  <td>

                </td>
                  <td>

                </td>

        </tr>

                <tr>
            <td style="width: 10px;">
                &nbsp;
            </td>
            <td>
                Cliente</td>
            <td>
                    
                <asp:DropDownList ID="dpCliente" runat="server">
                    <asp:ListItem Value=" ">Seleccionar</asp:ListItem>
                    <asp:ListItem Value="1">SI</asp:ListItem>
                    <asp:ListItem Value="0">NO</asp:ListItem>
                </asp:DropDownList>
                    
                </td>
            <td>
                Proveedor</td>
            <td>
                     <asp:DropDownList ID="dpProveedor" runat="server">
                       <asp:ListItem Value=" ">Seleccionar</asp:ListItem>
                       <asp:ListItem Value="1">SI</asp:ListItem>
                       <asp:ListItem Value="0">NO</asp:ListItem>
                </asp:DropDownList>
                </td>
            <td colspan="2">
                &nbsp;
            </td>
            <td>
                    <asp:Button ID="btnLimpiar" runat="server"  Text="Limpiar" 
                    CssClass="esdButtonStyle" Width="80px" />
                </td>
            <td style="width: 10px;">
                &nbsp;
            </td>
        </tr>
           <tr>
            <td colspan="9">
                &nbsp;
            </td>
        </tr>

        <tr>
            <td style="width: 10px;">
                &nbsp;
            </td>
            <td>
                RUC 
            </td>
            <td>
                    <asp:TextBox ID="txtRuc" runat="server" CssClass="esdTextBox" 
                    Width="100px"></asp:TextBox>
                </td>
            <td>
                Razon Social</td>
            <td>
                    <asp:TextBox ID="txtRazonSoc" runat="server" CssClass="esdTextBox" 
                    Width="300px"></asp:TextBox>
                </td>
            <td colspan="2">
                &nbsp;
            </td>
            <td>
                    
                    <asp:Button ID="btnBuscar" runat="server" onclick="btnBuscar_Click" 
                        Text="Buscar" CssClass="esdButtonStyle" Width="80px" />
                    
                </td>
            <td style="width: 10px;">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="9">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="width: 10px;">
                &nbsp;
            </td>
            <td>
                Doc. Identidad :
            </td>
            <td>
                    <asp:TextBox ID="txtDocIdent" runat="server" CssClass="esdTextBox" 
                    Width="100px"></asp:TextBox>
                </td>
            <td colspan="3">
                &nbsp;
               
            </td>
            <td>
                &nbsp;</td>
            <td>
                    &nbsp;</td>
            <td style="width: 10px;">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="9">
                &nbsp;
            </td>
        </tr>
    </table>
    </div>

    <div>
            <div align="center" style="overflow: auto;  >
                <div class="DataDetail">
                    <asp:GridView ID="gvListar" runat="server" AutoGenerateColumns="False" CellPadding="0" GridLines="None" Width="684px" ShowFooter="True" onrowcommand="gvListar_RowCommand" >
                        <AlternatingRowStyle CssClass="esdGridAlternativeRowStyle" />
                            <Columns>
                                <asp:BoundField DataField="RowNumber" HeaderText="N°" />
                                    <asp:TemplateField HeaderText="Codigo">
                                        <ItemStyle HorizontalAlign="Center" Width="70px" CssClass="etiqueta"></ItemStyle>
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lblOCCodigo" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Codigo") %>'
                                                CommandArgument='<%# Bind("Codigo") %>' CommandName="Detalle" CssClass="textoTabulado"
                                                CausesValidation="false" ToolTip="Consulta Proveedor"></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="Razon Social" HeaderText="Razon Social" />
                                    <asp:BoundField DataField="Apellido" HeaderText="Apellido" />
                                    <asp:BoundField DataField="Nro Doc." HeaderText="Nro Doc." />
                                    <asp:BoundField DataField="RUC" HeaderText="RUC" />
                            </Columns>
                        <HeaderStyle CssClass="esdGridHeaderStyle" />
                        <PagerStyle CssClass="gridPagerStyle" />
                        <RowStyle CssClass="esdGridRowStyle" />
                        <SelectedRowStyle CssClass="esdGridSelectedRowStyle" />
                    </asp:GridView>
                </div>
            <div align="center">
                <asp:Label ID="Message" runat="server"></asp:Label>
            </div>
    </div>
    </div>
    </form>
</body>
</html>
